import React from "react";

const AlertButton = ({message, children} : {message:string, children: React.ReactNode}) => {
	return (
		<button onClick={() => alert(message)}>
			{children}
		</button>
	)
}

const ToolBar = () => (
	<div>
		<AlertButton message="Hello">
			Say Hello
		</AlertButton>
		<AlertButton message="Delete">
			Delete
		</AlertButton>
	</div>
);
export default ToolBar;